/**
 * Copyright © 2021-2025 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.patient.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.patient.service.dto.PatientInfoDTO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeeplus.patient.domain.PatientInfo;
import com.jeeplus.patient.mapper.PatientInfoMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * 病人信息Service
 * @author xx
 * @version 2024-02-16
 */
@Service
@Transactional
public class PatientInfoService extends ServiceImpl<PatientInfoMapper, PatientInfo> {

    @Resource
    private PatientInfoMapper patientInfoMapper;

    @Transactional(readOnly = false)
    public void savePatient(PatientInfo patientInfo) {
        patientInfoMapper.insert(patientInfo);
    }

}
